<template>
    <el-container>
                <el-main>
        <StElDynamicForm :helper-form="helperForm" :submit-props="{method: 'get',loading: searchLoading,onSubmit:(form,data)=>{queryParams = $stObjectTools.clone(data)}}"
                         :options="OrderRefundFormOptions" :origin-prop="{inline: true,labelWidth: '100px'}">

        </StElDynamicForm>
        <StElTable ref="steltable" :options="OrderRefundTableOptions" @loading="(val)=>{searchLoading = val}" :datas="OrderRefundUrl.searchList" :query-params="queryParams">
            <template #append>
                <el-table-column
                        label="操作"
                        width="200">
                    <template #default="{row,column,$index}">
                        <StElButtonGroup :group-param="{row,column,$index}" :operationMoreButtonOptions="{stype: 'link'}" :operations="tableOperations">
                        </StElButtonGroup>
                    </template>
                </el-table-column>

            </template>
        </StElTable>
        </el-main>
    </el-container>
</template>

<script>
    import OrderRefundMixin from '../OrderRefundMixin.js'
    import OrderRefundGoodsUrl from '../OrderRefundGoodsUrl.js'
    export default {
        name: "OrderRefundSearchList",
        mixins: [OrderRefundMixin],
        props: {
        },
        computed: {
        },
        data() {
            return {
                queryParams: {},
                searchLoading:  false,

                helperForm: {
                },

                tableOperations: [
                    {
                        label: '退款商品',
                        stype: 'link',
                        action: ({groupParam}) => {
                            this.$router.push({path: OrderRefundGoodsUrl.router.searchList, query: {refundNo: groupParam.row.refundNo}})
                        }
                    },
                ]
            }
        },
        methods: {
        }
    }
</script>

<style scoped>

</style>